package generator.domain;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName DS_Shuju
 */
@Data
public class DsShuju implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String property;

    /**
     * 
     */
    private String signcode;

    /**
     * 
     */
    private String devicetype;

    /**
     * 
     */
    private String unitcode;

    /**
     * 
     */
    private String bottlecode;

    /**
     * 
     */
    private String barcode;

    /**
     * 
     */
    private String bottlesuppliername;

    /**
     * 
     */
    private String productiondate;

    /**
     * 
     */
    private String lastcheckdate;

    /**
     * 
     */
    private String nextcheckdate;

    /**
     * 
     */
    private Integer bottlemedium;

    /**
     * 
     */
    private String bottlevolume;

    /**
     * 
     */
    private String nominalpressure;

    /**
     * 
     */
    private String disable;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DsShuju other = (DsShuju) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProperty() == null ? other.getProperty() == null : this.getProperty().equals(other.getProperty()))
            && (this.getSigncode() == null ? other.getSigncode() == null : this.getSigncode().equals(other.getSigncode()))
            && (this.getDevicetype() == null ? other.getDevicetype() == null : this.getDevicetype().equals(other.getDevicetype()))
            && (this.getUnitcode() == null ? other.getUnitcode() == null : this.getUnitcode().equals(other.getUnitcode()))
            && (this.getBottlecode() == null ? other.getBottlecode() == null : this.getBottlecode().equals(other.getBottlecode()))
            && (this.getBarcode() == null ? other.getBarcode() == null : this.getBarcode().equals(other.getBarcode()))
            && (this.getBottlesuppliername() == null ? other.getBottlesuppliername() == null : this.getBottlesuppliername().equals(other.getBottlesuppliername()))
            && (this.getProductiondate() == null ? other.getProductiondate() == null : this.getProductiondate().equals(other.getProductiondate()))
            && (this.getLastcheckdate() == null ? other.getLastcheckdate() == null : this.getLastcheckdate().equals(other.getLastcheckdate()))
            && (this.getNextcheckdate() == null ? other.getNextcheckdate() == null : this.getNextcheckdate().equals(other.getNextcheckdate()))
            && (this.getBottlemedium() == null ? other.getBottlemedium() == null : this.getBottlemedium().equals(other.getBottlemedium()))
            && (this.getBottlevolume() == null ? other.getBottlevolume() == null : this.getBottlevolume().equals(other.getBottlevolume()))
            && (this.getNominalpressure() == null ? other.getNominalpressure() == null : this.getNominalpressure().equals(other.getNominalpressure()))
            && (this.getDisable() == null ? other.getDisable() == null : this.getDisable().equals(other.getDisable()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProperty() == null) ? 0 : getProperty().hashCode());
        result = prime * result + ((getSigncode() == null) ? 0 : getSigncode().hashCode());
        result = prime * result + ((getDevicetype() == null) ? 0 : getDevicetype().hashCode());
        result = prime * result + ((getUnitcode() == null) ? 0 : getUnitcode().hashCode());
        result = prime * result + ((getBottlecode() == null) ? 0 : getBottlecode().hashCode());
        result = prime * result + ((getBarcode() == null) ? 0 : getBarcode().hashCode());
        result = prime * result + ((getBottlesuppliername() == null) ? 0 : getBottlesuppliername().hashCode());
        result = prime * result + ((getProductiondate() == null) ? 0 : getProductiondate().hashCode());
        result = prime * result + ((getLastcheckdate() == null) ? 0 : getLastcheckdate().hashCode());
        result = prime * result + ((getNextcheckdate() == null) ? 0 : getNextcheckdate().hashCode());
        result = prime * result + ((getBottlemedium() == null) ? 0 : getBottlemedium().hashCode());
        result = prime * result + ((getBottlevolume() == null) ? 0 : getBottlevolume().hashCode());
        result = prime * result + ((getNominalpressure() == null) ? 0 : getNominalpressure().hashCode());
        result = prime * result + ((getDisable() == null) ? 0 : getDisable().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", property=").append(property);
        sb.append(", signcode=").append(signcode);
        sb.append(", devicetype=").append(devicetype);
        sb.append(", unitcode=").append(unitcode);
        sb.append(", bottlecode=").append(bottlecode);
        sb.append(", barcode=").append(barcode);
        sb.append(", bottlesuppliername=").append(bottlesuppliername);
        sb.append(", productiondate=").append(productiondate);
        sb.append(", lastcheckdate=").append(lastcheckdate);
        sb.append(", nextcheckdate=").append(nextcheckdate);
        sb.append(", bottlemedium=").append(bottlemedium);
        sb.append(", bottlevolume=").append(bottlevolume);
        sb.append(", nominalpressure=").append(nominalpressure);
        sb.append(", disable=").append(disable);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}